using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using Infragistics.UltraChart.Resources.Appearance;
using Infragistics.UltraChart.Shared.Styles;
using Infragistics.Win;
using Infragistics.Win.UltraWinChart;
using Infragistics.Win.UltraWinExplorerBar;
using Infragistics.Win.UltraWinGrid;
using Infragistics.Win.UltraWinMaskedEdit;
using Infragistics.Win.UltraWinScrollBar;
using Infragistics.Win.UltraWinTabControl;
using Infragistics.Win.UltraWinTabs;
using PluginFrame;

namespace PcrExperimentProject
{
	public class FormProgramEditorOld : Form
	{
		protected bool mProgramError;

		protected bool mTitleError;

		protected bool mIsNewPcrProgram;

		protected bool mIsSaved;

		protected IApplication mApplication;

		protected IConfigurationService mConfigurationService;

		protected IPcrProgramConfiguration mPcrProgramConfiguration;

		protected IPcrExperimentProject mPcrExperimentProgram;

		protected IPcrProgram mPcrProgram;

		protected IMiscService mMiscService;

		protected IPcrSystemService mPcrSystemService;

		protected IPcrLogService mPcrLogService;

		protected IPcrExperimentProjectService mPcrProjectService;

		protected IPcrOptionService mPcrOptionService;

		protected ToolStripMenuItem mMenuFile;

		protected ToolStripMenuItem mMenuOption;

		private IContainer components;

		private UltraGrid grdStep;

		private Panel panel3;

		private UltraTabControl ultraTabControl;

		private UltraTabSharedControlsPage ultraTabSharedControlsPage1;

		private UltraTabPageControl ultraTabPageControl1;

		private UltraTabPageControl ultraTabPageControl2;

		private GroupBox grbAmplificationSegment;

		private GroupBox grbMeltingSegment;

		private Button btnMoveDown;

		private Button btnMoveUp;

		private Button btnDeleteStep;

		private Button btnAddStep;

		private Panel panelCycle;

		private UltraExplorerBar segmentBar;

		private Label lblCycleCount;

		private NumericUpDown numCycleCount;

		private MenuStrip mnuPcrProgram;

		private Panel panel2;

		private UltraChart chartPcrProgram;

		private UltraScrollBar scrollBar;

		private GroupBox grbPreview;

		public IPcrProgram PcrProgram
		{
			get
			{
				return mPcrProgram;
			}
		}

		public IPcrExperimentProject PcrExperimentProgram
		{
			get
			{
				return mPcrExperimentProgram;
			}
		}

		public FormProgramEditorOld(IApplication application, IPcrExperimentProject pcrExperimentProgram, bool isNewPcrProgram)
		{
			try
			{
				mApplication = application;
				mPcrExperimentProgram = pcrExperimentProgram;
				mPcrProgram = mPcrExperimentProgram.PcrProgram;
				mIsNewPcrProgram = isNewPcrProgram;
				mConfigurationService = (IConfigurationService)application.GetService("ConfigurationService");
				mMiscService = (IMiscService)application.GetService("MiscService");
				mPcrProjectService = (IPcrExperimentProjectService)application.GetService("PcrExperimentProjectService");
				mPcrSystemService = (IPcrSystemService)application.GetService("PcrSystemService");
				mPcrLogService = (IPcrLogService)application.GetService("PcrLogService");
				mPcrOptionService = (IPcrOptionService)application.GetService("PcrOptionService");
				mPcrProgramConfiguration = mConfigurationService.PcrProgramConfiguration;
				InitializeComponent();
				InitializeControls();
				InitializeEditorTitle();
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		public void OpenPcrProgram(IPcrExperimentProject pcrExperimentProgram)
		{
			mPcrExperimentProgram = pcrExperimentProgram;
			mPcrExperimentProgram.SetApplication(mApplication);
			mIsNewPcrProgram = false;
			InitializeSegmentBar();
			InitializeEditorTitle();
		}

		protected void InitializeControls()
		{
			lblCycleCount.Text = "Cycle Count";
			numCycleCount.Maximum = 99m;
			numCycleCount.Minimum = 1m;
			grbPreview.Text = "Preview";
			InitializeMenu();
			InitializeGridLayout();
			segmentBar.ContextMenuInitializing += segmentBar_ContextMenuInitializing;
			segmentBar.ItemCheckStateChanged += segmentBar_ItemCheckStateChanged;
			InitializeSegmentBar();
			segmentBar.ItemCheckStateChanging += segmentBar_ItemCheckStateChanging;
			segmentBar.ItemExitingEditMode += segmentBar_ItemExitingEditMode;
		}

		protected void InitializeGridLayout()
		{
			grdStep.DataSource = mPcrProgram.GetAmplificationSegment(0).StepTable;
			grdStep.DisplayLayout.ViewStyleBand = ViewStyleBand.Horizontal;
			grdStep.DisplayLayout.CaptionVisible = DefaultableBoolean.False;
			grdStep.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;
			grdStep.DisplayLayout.Scrollbars = Scrollbars.Horizontal;
			grdStep.DisplayLayout.Override.HeaderAppearance.TextHAlign = HAlign.Center;
			grdStep.DisplayLayout.Override.HeaderAppearance.TextVAlign = VAlign.Middle;
			grdStep.DisplayLayout.Override.CellClickAction = CellClickAction.EditAndSelectText;
			grdStep.DisplayLayout.Override.RowSelectors = DefaultableBoolean.True;
			grdStep.DisplayLayout.Override.RowSelectorAppearance.TextHAlign = HAlign.Center;
			grdStep.DisplayLayout.Override.RowSelectorAppearance.TextVAlign = VAlign.Middle;
			grdStep.DisplayLayout.Override.RowSelectorHeaderStyle = RowSelectorHeaderStyle.SeparateElement;
			grdStep.DisplayLayout.Override.RowSelectorNumberStyle = RowSelectorNumberStyle.RowIndex;
			grdStep.DisplayLayout.Override.RowSelectorStyle = HeaderStyle.WindowsVista;
			grdStep.DisplayLayout.Override.AllowAddNew = AllowAddNew.No;
			grdStep.DisplayLayout.Override.ExpansionIndicator = ShowExpansionIndicator.Never;
			grdStep.DisplayLayout.Override.ColumnAutoSizeMode = ColumnAutoSizeMode.AllRowsInBand;
			grdStep.DisplayLayout.Override.RowSizing = RowSizing.Fixed;
			grdStep.DisplayLayout.Override.AllowColSizing = AllowColSizing.None;
			grdStep.DisplayLayout.Override.AllowColMoving = AllowColMoving.NotAllowed;
			grdStep.DisplayLayout.Override.HeaderClickAction = HeaderClickAction.Select;
			grdStep.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.True;
			grdStep.UpdateMode = UpdateMode.OnCellChangeOrLostFocus;
			grdStep.DisplayLayout.Bands[0].Override.CellAppearance.TextHAlign = HAlign.Center;
			grdStep.DisplayLayout.Bands[0].Override.CellAppearance.TextVAlign = VAlign.Middle;
			grdStep.DisplayLayout.Bands[0].Columns[0].Header.Caption = "Temperature";
			grdStep.DisplayLayout.Bands[0].Columns[0].Width = 80;
			grdStep.DisplayLayout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Double;
			grdStep.DisplayLayout.Bands[0].Columns[0].MaskInput = "{double:2.1}";
			grdStep.DisplayLayout.Bands[0].Columns[0].MaskDataMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[0].MaskDisplayMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[0].PromptChar = '0';
			grdStep.DisplayLayout.Bands[0].Columns[0].PadChar = '0';
			grdStep.DisplayLayout.Bands[0].Columns[0].DefaultCellValue = 0.0;
			grdStep.DisplayLayout.Bands[0].Columns[1].Header.Caption = "Hold Time";
			grdStep.DisplayLayout.Bands[0].Columns[1].Width = 45;
			grdStep.DisplayLayout.Bands[0].Columns[1].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
			grdStep.DisplayLayout.Bands[0].Columns[1].MaskInput = "99:99";
			grdStep.DisplayLayout.Bands[0].Columns[1].MaskDataMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[1].MaskDisplayMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[1].PromptChar = '0';
			grdStep.DisplayLayout.Bands[0].Columns[1].DefaultCellValue = "00:00";
			grdStep.DisplayLayout.Bands[0].Columns[2].Header.Caption = "Fluorescence Detection";
			grdStep.DisplayLayout.Bands[0].Columns[2].Width = 90;
			grdStep.DisplayLayout.Bands[0].Columns[2].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;
			grdStep.DisplayLayout.Bands[0].Columns[2].DefaultCellValue = false;
			grdStep.DisplayLayout.Bands[0].Columns[3].Header.Caption = "Advanced Program";
			grdStep.DisplayLayout.Bands[0].Columns[3].Width = 80;
			grdStep.DisplayLayout.Bands[0].Columns[3].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox;
			grdStep.DisplayLayout.Bands[0].Columns[3].DefaultCellValue = false;
			ValueList valueList = new ValueList();
			valueList.ValueListItems.Add(true, "Increase");
			valueList.ValueListItems.Add(false, "Decrease");
			grdStep.DisplayLayout.Bands[0].Columns[4].Header.Caption = "Temperature Variation";
			grdStep.DisplayLayout.Bands[0].Columns[4].Width = 80;
			grdStep.DisplayLayout.Bands[0].Columns[4].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
			grdStep.DisplayLayout.Bands[0].Columns[4].ValueList = valueList;
			grdStep.DisplayLayout.Bands[0].Columns[4].DefaultCellValue = valueList.ValueListItems[0].DataValue;
			grdStep.DisplayLayout.Bands[0].Columns[5].Header.Caption = "Variation Value";
			grdStep.DisplayLayout.Bands[0].Columns[5].Width = 75;
			grdStep.DisplayLayout.Bands[0].Columns[5].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Double;
			grdStep.DisplayLayout.Bands[0].Columns[5].MaskInput = "nn.n";
			grdStep.DisplayLayout.Bands[0].Columns[5].MaskDataMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[5].MaskDisplayMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[5].PromptChar = '0';
			grdStep.DisplayLayout.Bands[0].Columns[5].PadChar = '0';
			grdStep.DisplayLayout.Bands[0].Columns[5].DefaultCellValue = 0.0;
			grdStep.DisplayLayout.Bands[0].Columns[6].Header.Caption = "Time Variation";
			grdStep.DisplayLayout.Bands[0].Columns[6].Width = 75;
			grdStep.DisplayLayout.Bands[0].Columns[6].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
			grdStep.DisplayLayout.Bands[0].Columns[6].ValueList = valueList;
			grdStep.DisplayLayout.Bands[0].Columns[6].DefaultCellValue = valueList.ValueListItems[0].DataValue;
			grdStep.DisplayLayout.Bands[0].Columns[7].Header.Caption = "Variation Value";
			grdStep.DisplayLayout.Bands[0].Columns[7].Width = 75;
			grdStep.DisplayLayout.Bands[0].Columns[7].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Edit;
			grdStep.DisplayLayout.Bands[0].Columns[7].MaskInput = "99:99";
			grdStep.DisplayLayout.Bands[0].Columns[7].MaskDataMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[7].MaskDisplayMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[7].PromptChar = '0';
			grdStep.DisplayLayout.Bands[0].Columns[7].DefaultCellValue = "00:00";
			grdStep.DisplayLayout.Bands[0].Columns[8].Header.Caption = "Rising/Falling Rate";
			grdStep.DisplayLayout.Bands[0].Columns[8].Width = 100;
			grdStep.DisplayLayout.Bands[0].Columns[8].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Double;
			grdStep.DisplayLayout.Bands[0].Columns[8].MaskInput = "n.n";
			grdStep.DisplayLayout.Bands[0].Columns[8].MaskDataMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[8].MaskDisplayMode = MaskMode.IncludeBoth;
			grdStep.DisplayLayout.Bands[0].Columns[8].PromptChar = '0';
			grdStep.DisplayLayout.Bands[0].Columns[8].PadChar = '0';
			grdStep.DisplayLayout.Bands[0].Columns[8].DefaultCellValue = 0.0;
			grdStep.DisplayLayout.Override.WrapHeaderText = DefaultableBoolean.True;
			grdStep.CellChange += grdStep_CellChange;
			grdStep.BeforeExitEditMode += grdStep_BeforeExitEditMode;
			grdStep.AfterCellUpdate += grdStep_AfterCellUpdate;
		}

		protected void InitializeMenu()
		{
			mMenuFile = new ToolStripMenuItem();
			mMenuFile.Text = "&File";
			mMenuFile.Name = "File";
			ToolStripMenuItem toolStripMenuItem = new ToolStripMenuItem();
			toolStripMenuItem.Name = "NewProgramFile";
			toolStripMenuItem.Text = "&New...";
			toolStripMenuItem.ShortcutKeys = Keys.N | Keys.Control;
			toolStripMenuItem.Click += mnuNewProgramFile_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem);
			ToolStripMenuItem toolStripMenuItem2 = new ToolStripMenuItem();
			toolStripMenuItem2.Name = "OpenProgramFile";
			toolStripMenuItem2.Text = "&Open...";
			toolStripMenuItem2.ShortcutKeys = Keys.O | Keys.Control;
			toolStripMenuItem2.Click += mnuOpenProgramFile_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem2);
			ToolStripMenuItem toolStripMenuItem3 = new ToolStripMenuItem();
			toolStripMenuItem3.Name = "SaveProgramFile";
			toolStripMenuItem3.Text = "&Save";
			toolStripMenuItem3.ShortcutKeys = Keys.S | Keys.Control;
			toolStripMenuItem3.Click += mnuSaveProgramFile_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem3);
			ToolStripMenuItem toolStripMenuItem4 = new ToolStripMenuItem();
			toolStripMenuItem4.Name = "SaveAsPcrFile";
			toolStripMenuItem4.Text = "&Save as...";
			toolStripMenuItem4.ShortcutKeys = Keys.A | Keys.Control;
			toolStripMenuItem4.Click += mnuSaveAsProgramFile_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem4);
			ToolStripMenuItem toolStripMenuItem5 = new ToolStripMenuItem();
			toolStripMenuItem5.Name = "Close";
			toolStripMenuItem5.Text = "&Close";
			toolStripMenuItem5.Click += mnuClose_Click;
			mMenuFile.DropDownItems.Add(toolStripMenuItem5);
			mnuPcrProgram.Items.Add(mMenuFile);
			mMenuOption = new ToolStripMenuItem();
			mMenuOption.Text = "&Option";
			mMenuOption.Name = "Option";
			ToolStripMenuItem toolStripMenuItem6 = new ToolStripMenuItem();
			toolStripMenuItem6.Name = "ExperimentChannel";
			toolStripMenuItem6.Text = "&Experiment Channel...";
			toolStripMenuItem6.Click += mnuChannelOption_Click;
			mMenuOption.DropDownItems.Add(toolStripMenuItem6);
			ToolStripMenuItem toolStripMenuItem7 = new ToolStripMenuItem();
			toolStripMenuItem7.Name = "AnalysisParameters";
			toolStripMenuItem7.Text = "&Analysis Parameters...";
			toolStripMenuItem7.Click += mnuAnalysisOption_Click;
			mMenuOption.DropDownItems.Add(toolStripMenuItem7);
			ToolStripMenuItem toolStripMenuItem8 = new ToolStripMenuItem();
			toolStripMenuItem8.Name = "TemperatureControl";
			toolStripMenuItem8.Text = "&Temperature Control...";
			toolStripMenuItem8.Click += mnuTemperatureControlOption_Click;
			mMenuOption.DropDownItems.Add(toolStripMenuItem8);
			ToolStripMenuItem toolStripMenuItem9 = new ToolStripMenuItem();
			toolStripMenuItem9.Name = "CrossTalk";
			toolStripMenuItem9.Text = "Cross &Talk...";
			toolStripMenuItem9.Click += mnuCrossTalkOption_Click;
			mMenuOption.DropDownItems.Add(toolStripMenuItem9);
			mnuPcrProgram.Items.Add(mMenuOption);
		}

		protected void InitializeEditorTitle()
		{
			if (mIsNewPcrProgram)
			{
				Text = "New Thermal Profile ";
			}
			else
			{
				Text = mPcrExperimentProgram.FileName;
			}
			mIsSaved = true;
		}

		protected void InitializeSegmentBar()
		{
			foreach (UltraExplorerBarGroup group in segmentBar.Groups)
			{
				group.Items.Clear();
			}
			for (int i = 0; i < mPcrProgram.AmplificationSegmentCount; i++)
			{
				IAmplificationSegment amplificationSegment = mPcrProgram.GetAmplificationSegment(i);
				string name = amplificationSegment.Name;
				UltraExplorerBarItem ultraExplorerBarItem = new UltraExplorerBarItem(name);
				ultraExplorerBarItem.Tag = amplificationSegment;
				ultraExplorerBarItem.Text = name;
				ultraExplorerBarItem.Settings.AllowDragMove = ItemDragStyle.WithinGroupOnly;
				segmentBar.Groups["Amplification"].Items.Add(ultraExplorerBarItem);
			}
			segmentBar.Groups["Amplification"].Active = true;
			segmentBar.Groups["Amplification"].Expanded = true;
			segmentBar.Groups["Amplification"].Items[0].Checked = true;
		}

		protected void SwapRow(int currentRowIndex, int objRowIndex)
		{
			DataTable dataTable = grdStep.DataSource as DataTable;
			DataRow dataRow = dataTable.Rows[currentRowIndex];
			DataRow dataRow2 = dataTable.Rows[objRowIndex];
			for (int i = 0; i < dataRow.ItemArray.Length; i++)
			{
				object value = dataRow[i];
				dataRow[i] = dataRow2[i];
				dataRow2[i] = value;
			}
			SetFluoscenceDetectionEnable(Convert.ToBoolean(dataRow[2]), currentRowIndex, true);
			SetAdvanceProgramEnable(Convert.ToBoolean(dataRow[3]), currentRowIndex);
			SetFluoscenceDetectionEnable(Convert.ToBoolean(dataRow2[2]), objRowIndex, true);
			SetAdvanceProgramEnable(Convert.ToBoolean(dataRow2[3]), objRowIndex);
			grdStep.Rows[objRowIndex].Activate();
		}

		protected void RefreshAmplificationSegmentDisplay(IAmplificationSegment segment)
		{
			grdStep.DataSource = segment.StepTable;
			grdStep.Tag = segment;
			numCycleCount.Tag = segment;
			numCycleCount.ValueChanged -= numCycleCount_ValueChanged;
			numCycleCount.Value = segment.Cycle;
			numCycleCount.ValueChanged += numCycleCount_ValueChanged;
			foreach (UltraGridRow row in grdStep.Rows)
			{
				SetFluoscenceDetectionEnable(Convert.ToBoolean(row.Cells[2].Value), row.Index, true);
				SetAdvanceProgramEnable(Convert.ToBoolean(row.Cells[3].Value), row.Index);
			}
			grdStep.DataBind();
			if (grdStep.Rows.Count <= 0)
			{
				btnDeleteStep.Enabled = false;
				btnMoveDown.Enabled = false;
				btnMoveUp.Enabled = false;
			}
			else
			{
				btnDeleteStep.Enabled = true;
				btnMoveDown.Enabled = true;
				btnMoveUp.Enabled = true;
			}
			btnAddStep.Enabled = grdStep.Rows.Count < mPcrProgramConfiguration.ProgramSegmentStepCount;
		}

		protected void SaveAmplificationSegmentDisplay()
		{
		}

		protected void SetFluoscenceDetectionEnable(bool isEnable, int rowIndex, bool isNewRow)
		{
			if (isEnable)
			{
				foreach (UltraGridRow row in grdStep.Rows)
				{
					if (row.Index != rowIndex)
					{
						SetSingleRowFlupscenceEnable(row, false);
					}
					else
					{
						SetSingleRowFlupscenceEnable(row, true);
					}
				}
				(grdStep.Tag as IAmplificationSegment).FluoscenceStep = rowIndex + 1;
				return;
			}
			if (isNewRow)
			{
				if ((grdStep.Tag as IAmplificationSegment).FluoscenceStep > 0)
				{
					SetSingleRowFlupscenceEnable(grdStep.Rows[rowIndex], false);
				}
				return;
			}
			foreach (UltraGridRow row2 in grdStep.Rows)
			{
				SetSingleRowFlupscenceEnable(row2, true);
			}
			(grdStep.Tag as IAmplificationSegment).FluoscenceStep = 0;
		}

		protected void SetSingleRowFlupscenceEnable(UltraGridRow row, bool isEnable)
		{
			if (isEnable)
			{
				row.Cells[2].Activation = Activation.AllowEdit;
			}
			else
			{
				row.Cells[2].Value = false;
				row.Cells[2].Activation = Activation.Disabled;
			}
			row.Update();
		}

		protected void SetAdvanceProgramEnable(bool isEnable, int rowIndex)
		{
			for (int i = 4; i <= 8; i++)
			{
				if (!isEnable)
				{
					grdStep.Rows[rowIndex].Cells[i].Activation = Activation.Disabled;
				}
				else
				{
					grdStep.Rows[rowIndex].Cells[i].Activation = Activation.AllowEdit;
				}
			}
			grdStep.Rows[rowIndex].Update();
		}

		protected bool CheckSegmentBarEditMode()
		{
			segmentBar.PerformAction(UltraExplorerBarAction.ExitEditMode);
			if (mProgramError)
			{
				segmentBar.PerformAction(UltraExplorerBarAction.EditActiveItem);
			}
			return !mProgramError;
		}

		protected bool CheckCurrentProgramStatus()
		{
			if (!mIsSaved)
			{
				switch (MessageBox.Show("Current thermal profile is not be saved. Do you want to save before continue?", "Hint", MessageBoxButtons.YesNoCancel))
				{
				case DialogResult.Yes:
					mMenuFile.DropDownItems["SavePcrFile"].PerformClick();
					break;
				case DialogResult.Cancel:
					return false;
				}
			}
			return true;
		}

		protected bool CheckCurrentAmplificationSegment()
		{
			grdStep.UpdateData();
			foreach (UltraGridRow row in grdStep.Rows)
			{
				string text = (row.Index + 1).ToString();
				double num = Convert.ToDouble(row.Cells[0].Value);
				if (num < mPcrProgramConfiguration.MinTemperature)
				{
					MessageBox.Show("Temperature in Step " + text + " must be larger than " + mPcrProgramConfiguration.MinTemperature.ToString("0.0") + " degree!", "Error");
					row.Cells[0].Activate();
					return false;
				}
				int num2 = mMiscService.CovertTimeStringToSecond(row.Cells[1].Value.ToString());
				if (num2 < mPcrProgramConfiguration.MinHoldTime && Convert.ToBoolean(row.Cells[2].Value))
				{
					MessageBox.Show("Hold time in Step " + text + " must be larger than " + mPcrProgramConfiguration.MinHoldTime + " second when fluescence detection is selected!", "Error");
					row.Cells[1].Activate();
					return false;
				}
				if (num2 <= 0)
				{
					MessageBox.Show("Hold time in Step " + text + " must be larger than 0 second!", "Error");
					row.Cells[1].Activate();
					return false;
				}
				if (!Convert.ToBoolean(row.Cells[3].Value))
				{
					continue;
				}
				int num3 = Convert.ToInt32(numCycleCount.Value);
				if (Convert.ToBoolean(row.Cells[4].Value))
				{
					num += (double)(num3 - 1) * Convert.ToDouble(row.Cells[5].Value);
					if (num > mPcrProgramConfiguration.MaxTemperature)
					{
						MessageBox.Show("Temperature in Step " + text + " must be less than " + mPcrProgramConfiguration.MaxTemperature.ToString("0.0") + " degree!", "Error");
						row.Cells[5].Activate();
						return false;
					}
				}
				else
				{
					num -= (double)(num3 - 1) * Convert.ToDouble(row.Cells[5].Value);
					if (num < mPcrProgramConfiguration.MinTemperature)
					{
						MessageBox.Show("Temperature in Step " + text + " must be larger than " + mPcrProgramConfiguration.MinTemperature.ToString("0.0") + " degree!", "Error");
						row.Cells[5].Activate();
						return false;
					}
				}
				if (Convert.ToBoolean(row.Cells[6].Value))
				{
					num2 += (num3 - 1) * mMiscService.CovertTimeStringToSecond(row.Cells[7].Value.ToString());
					if (num2 > mPcrProgramConfiguration.MaxHoldTime)
					{
						MessageBox.Show("Hold time in Step " + text + " must be less than " + mPcrProgramConfiguration.MaxHoldTime + " second!", "Error");
						row.Cells[7].Activate();
						return false;
					}
				}
				else
				{
					num2 -= (num3 - 1) * mMiscService.CovertTimeStringToSecond(row.Cells[7].Value.ToString());
					if (num2 < mPcrProgramConfiguration.MinHoldTime)
					{
						MessageBox.Show("Hold time in Step " + text + " must be larger than " + mPcrProgramConfiguration.MinHoldTime + " second!", "Error");
						row.Cells[7].Activate();
						return false;
					}
				}
				double num4 = Convert.ToDouble(row.Cells[8].Value);
				if (num4 > mPcrProgramConfiguration.MaxRisingSpeed)
				{
					MessageBox.Show("Rising/Falling rate in Step " + text + " must smaller than " + mPcrProgramConfiguration.MaxRisingSpeed + " degree per second!", "Error");
					row.Cells[8].Activate();
					return false;
				}
			}
			return true;
		}

		protected void grdStep_AfterCellUpdate(object sender, CellEventArgs e)
		{
			mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProgram.PcrProgram, false, scrollBar, false, false);
			mIsSaved = false;
		}

		protected void grdStep_CellChange(object sender, CellEventArgs e)
		{
			try
			{
				if (e.Cell.Column.Index == 2)
				{
					SetFluoscenceDetectionEnable(Convert.ToBoolean(e.Cell.Text), e.Cell.Row.Index, false);
				}
				else if (e.Cell.Column.Index == 3)
				{
					SetAdvanceProgramEnable(Convert.ToBoolean(e.Cell.Text), e.Cell.Row.Index);
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void grdStep_BeforeRowUpdate(object sender, CancelableRowEventArgs e)
		{
		}

		protected void grdStep_BeforeCellUpdate(object sender, BeforeCellUpdateEventArgs e)
		{
		}

		protected void grdStep_BeforeExitEditMode(object sender, Infragistics.Win.UltraWinGrid.BeforeExitEditModeEventArgs e)
		{
		}

		protected void segmentBar_ItemExitingEditMode(object sender, CancelableItemExitingEditModeEventArgs e)
		{
			mTitleError = false;
			if (!mTitleError)
			{
				e.EditedText = e.EditedText.Trim();
				if (string.IsNullOrEmpty(e.EditedText))
				{
					MessageBox.Show("Segment name can not be empty! Please re-input correct name.", "Error");
					mTitleError = true;
					e.EditedText = e.Item.Text;
					mProgramError = true;
					return;
				}
				if (e.EditedText.Length > 20)
				{
					MessageBox.Show("Characters in segment name can not be larger than 20! Please re-input correct name.", "Error");
					mTitleError = true;
					e.EditedText = e.Item.Text;
					mProgramError = true;
					return;
				}
				foreach (UltraExplorerBarItem item in e.Item.Group.Items)
				{
					if (item != e.Item && string.Compare(item.Text, e.EditedText) == 0)
					{
						MessageBox.Show("Segment name can not be repeated! Please re-input correct name.", "Error");
						e.EditedText = e.Item.Text;
						mTitleError = true;
						mProgramError = true;
						return;
					}
				}
				mProgramError = false;
				mIsSaved = false;
			}
			else
			{
				mTitleError = false;
			}
		}

		protected void segmentBar_ItemCheckStateChanging(object sender, CancelableItemEventArgs e)
		{
			try
			{
				if (e.Item.Group.Key == "Amplification" && segmentBar.Groups["Amplification"].CheckedItem != null)
				{
					e.Cancel = !CheckCurrentAmplificationSegment();
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
				e.Cancel = true;
			}
		}

		protected void segmentBar_ItemCheckStateChanged(object sender, ItemEventArgs e)
		{
			try
			{
				if (e.Item.Group.Key == "Amplification" && e.Item.Checked)
				{
					RefreshAmplificationSegmentDisplay(e.Item.Tag as IAmplificationSegment);
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void segmentBar_ContextMenuInitializing(object sender, CancelableContextMenuInitializingEventArgs e)
		{
			try
			{
				if (e.ClickArea == ClickArea.GroupHeader)
				{
					e.Cancel = true;
				}
				else
				{
					e.ContextMenu.MenuItems[0].Visible = false;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void FormProgramEditor_Load(object sender, EventArgs e)
		{
			mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProgram.PcrProgram, true, scrollBar, false, true);
		}

		protected void FormProgramEditor_FormClosing(object sender, FormClosingEventArgs e)
		{
			grdStep.UpdateData();
			if (!mIsSaved)
			{
				switch (MessageBox.Show("Current Experiment Program is not saved! Do you want to save it before close?", "Hint", MessageBoxButtons.YesNoCancel))
				{
				case DialogResult.Yes:
					mMenuFile.DropDownItems["SavePcrFile"].PerformClick();
					e.Cancel = !mIsSaved;
					break;
				case DialogResult.Cancel:
					e.Cancel = true;
					break;
				}
			}
		}

		protected void btnAddStep_Click(object sender, EventArgs e)
		{
			try
			{
				DataTable dataTable = grdStep.DataSource as DataTable;
				DataRow dataRow = dataTable.NewRow();
				object tag = grdStep.Tag;
				for (int i = 0; i < dataRow.ItemArray.Length; i++)
				{
					dataRow[i] = grdStep.DisplayLayout.Bands[0].Columns[i].DefaultCellValue;
				}
				dataTable.Rows.Add(dataRow);
				dataTable.AcceptChanges();
				SetFluoscenceDetectionEnable(false, grdStep.Rows.Count - 1, true);
				SetAdvanceProgramEnable(false, grdStep.Rows.Count - 1);
				btnAddStep.Enabled = grdStep.Rows.Count < mPcrProgramConfiguration.ProgramSegmentStepCount;
				btnDeleteStep.Enabled = true;
				btnMoveDown.Enabled = true;
				btnMoveUp.Enabled = true;
				grdStep.Rows[dataTable.Rows.Count - 1].Cells[0].Activate();
				mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProgram.PcrProgram, false, scrollBar, false, false);
				mIsSaved = false;
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void btnDeleteStep_Click(object sender, EventArgs e)
		{
			try
			{
				if (grdStep.ActiveRow != null)
				{
					DataTable dataTable = grdStep.DataSource as DataTable;
					int index = grdStep.ActiveRow.Index;
					if ((grdStep.Tag as IAmplificationSegment).FluoscenceStep == index + 1)
					{
						SetFluoscenceDetectionEnable(false, index, false);
					}
					dataTable.Rows.RemoveAt(grdStep.ActiveRow.Index);
					if (grdStep.Rows.Count <= 0)
					{
						btnDeleteStep.Enabled = false;
						btnMoveDown.Enabled = false;
						btnMoveUp.Enabled = false;
					}
					else
					{
						btnAddStep.Enabled = true;
						index = ((index != 0) ? (index - 1) : 0);
						grdStep.Rows[index].Cells[0].Activate();
					}
					mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProgram.PcrProgram, false, scrollBar, false, false);
					mIsSaved = false;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void btnMoveUp_Click(object sender, EventArgs e)
		{
			try
			{
				if (grdStep.ActiveRow != null)
				{
					UltraGridRow activeRow = grdStep.ActiveRow;
					int index = activeRow.Index;
					if (index > 0)
					{
						SwapRow(index, index - 1);
						mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProgram.PcrProgram, false, scrollBar, false, false);
						mIsSaved = false;
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void btnMoveDown_Click(object sender, EventArgs e)
		{
			try
			{
				if (grdStep.ActiveRow != null)
				{
					UltraGridRow activeRow = grdStep.ActiveRow;
					int index = activeRow.Index;
					if (activeRow.Index < grdStep.Rows.Count - 1)
					{
						SwapRow(index, index + 1);
						mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProgram.PcrProgram, false, scrollBar, false, false);
						mIsSaved = false;
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuChannelOption_Click(object sender, EventArgs e)
		{
			try
			{
				mPcrOptionService.LoadChannelOptionForm(mPcrExperimentProgram.IsChannelUsed, mPcrExperimentProgram.ChannelConfigurations);
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuAnalysisOption_Click(object sender, EventArgs e)
		{
		}

		protected void mnuTemperatureControlOption_Click(object sender, EventArgs e)
		{
		}

		protected void mnuCrossTalkOption_Click(object sender, EventArgs e)
		{
		}

		protected void mnuNewProgramFile_Click(object sender, EventArgs e)
		{
			try
			{
				if (CheckSegmentBarEditMode() && CheckCurrentProgramStatus())
				{
					mIsNewPcrProgram = true;
					FormProjectOption formProjectOption = new FormProjectOption(mApplication, PcrSystemType.AbsoluteAnalysis);
					if (formProjectOption.ShowDialog() == DialogResult.OK)
					{
						mPcrExperimentProgram = mPcrProjectService.CreateNewEmptyProject();
						InitializeEditorTitle();
						InitializeSegmentBar();
						mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProgram.PcrProgram, true, scrollBar, false, false);
					}
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuOpenProgramFile_Click(object sender, EventArgs e)
		{
			try
			{
				if (CheckSegmentBarEditMode())
				{
					mPcrProjectService.OpenPcrExperimentProject();
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuSaveProgramFile_Click(object sender, EventArgs e)
		{
			try
			{
				if (CheckSegmentBarEditMode() && CheckCurrentAmplificationSegment())
				{
					if (mIsNewPcrProgram)
					{
						mMenuFile.DropDownItems["SaveAsPcrFile"].PerformClick();
						return;
					}
					mPcrProjectService.SaveExperimentProject(mPcrExperimentProgram);
					mIsSaved = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuSaveAsProgramFile_Click(object sender, EventArgs e)
		{
			try
			{
				if (!CheckSegmentBarEditMode() || !CheckCurrentAmplificationSegment())
				{
					return;
				}
				if (mIsNewPcrProgram)
				{
					string fileName = mPcrSystemService.GetActiveFormProjectFolder(null) + "Experiment Program " + mMiscService.TimeToFileFormatString(DateTime.Now, "_") + ".prg";
					fileName = mPcrProjectService.SaveAsExperimentProject(mPcrExperimentProgram, fileName);
					if (fileName != null)
					{
						mIsSaved = true;
						mIsNewPcrProgram = false;
						Text = fileName;
					}
				}
				else
				{
					mPcrProjectService.SaveAsExperimentProject(mPcrExperimentProgram, mPcrSystemService.GetActiveFormProjectFolder(null));
					mIsSaved = true;
				}
			}
			catch (Exception ex)
			{
				mPcrLogService.ShowExceptionDialogBox(ex);
			}
		}

		protected void mnuClose_Click(object sender, EventArgs e)
		{
			Close();
		}

		protected void numCycleCount_ValueChanged(object sender, EventArgs e)
		{
			IAmplificationSegment amplificationSegment = numCycleCount.Tag as IAmplificationSegment;
			int num = Convert.ToInt32(numCycleCount.Value);
			if (num != amplificationSegment.Cycle)
			{
				amplificationSegment.Cycle = num;
				mPcrProjectService.DrawExperimentProgramCurve(chartPcrProgram, mPcrExperimentProgram.PcrProgram, false, scrollBar, false, false);
				mIsSaved = false;
			}
		}

		protected void segmentBar_ItemClick(object sender, ItemEventArgs e)
		{
		}

		protected void scrollBar_ValueChanged(object sender, EventArgs e)
		{
			chartPcrProgram.Axis.X.RangeMax += (double)scrollBar.Value - chartPcrProgram.Axis.X.RangeMin;
			chartPcrProgram.Axis.X.RangeMin = scrollBar.Value;
		}

		protected override void Dispose(bool disposing)
		{
			if (disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}

		private void InitializeComponent()
		{
			Infragistics.Win.Appearance appearance = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance4 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance5 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance6 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance7 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance8 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance9 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance10 = new Infragistics.Win.Appearance();
			Infragistics.Win.Appearance appearance11 = new Infragistics.Win.Appearance();
			Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarGroup ultraExplorerBarGroup = new Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarGroup();
			Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarGroup ultraExplorerBarGroup2 = new Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarGroup();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.Win.UltraWinTabControl.UltraTab ultraTab2 = new Infragistics.Win.UltraWinTabControl.UltraTab();
			Infragistics.UltraChart.Resources.Appearance.PaintElement paintElement = new Infragistics.UltraChart.Resources.Appearance.PaintElement();
			Infragistics.UltraChart.Resources.Appearance.GradientEffect effect = new Infragistics.UltraChart.Resources.Appearance.GradientEffect();
			this.ultraTabPageControl1 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grbAmplificationSegment = new System.Windows.Forms.GroupBox();
			this.grdStep = new Infragistics.Win.UltraWinGrid.UltraGrid();
			this.panel3 = new System.Windows.Forms.Panel();
			this.btnMoveDown = new System.Windows.Forms.Button();
			this.btnMoveUp = new System.Windows.Forms.Button();
			this.btnDeleteStep = new System.Windows.Forms.Button();
			this.btnAddStep = new System.Windows.Forms.Button();
			this.panelCycle = new System.Windows.Forms.Panel();
			this.lblCycleCount = new System.Windows.Forms.Label();
			this.numCycleCount = new System.Windows.Forms.NumericUpDown();
			this.ultraTabPageControl2 = new Infragistics.Win.UltraWinTabControl.UltraTabPageControl();
			this.grbMeltingSegment = new System.Windows.Forms.GroupBox();
			this.segmentBar = new Infragistics.Win.UltraWinExplorerBar.UltraExplorerBar();
			this.ultraTabControl = new Infragistics.Win.UltraWinTabControl.UltraTabControl();
			this.ultraTabSharedControlsPage1 = new Infragistics.Win.UltraWinTabControl.UltraTabSharedControlsPage();
			this.mnuPcrProgram = new System.Windows.Forms.MenuStrip();
			this.panel2 = new System.Windows.Forms.Panel();
			this.chartPcrProgram = new Infragistics.Win.UltraWinChart.UltraChart();
			this.scrollBar = new Infragistics.Win.UltraWinScrollBar.UltraScrollBar();
			this.grbPreview = new System.Windows.Forms.GroupBox();
			this.ultraTabPageControl1.SuspendLayout();
			this.grbAmplificationSegment.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.grdStep).BeginInit();
			this.panel3.SuspendLayout();
			this.panelCycle.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount).BeginInit();
			this.ultraTabPageControl2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.segmentBar).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.ultraTabControl).BeginInit();
			this.ultraTabControl.SuspendLayout();
			this.panel2.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.chartPcrProgram).BeginInit();
			this.grbPreview.SuspendLayout();
			base.SuspendLayout();
			this.ultraTabPageControl1.Controls.Add(this.grbAmplificationSegment);
			this.ultraTabPageControl1.Location = new System.Drawing.Point(0, 0);
			this.ultraTabPageControl1.Name = "ultraTabPageControl1";
			this.ultraTabPageControl1.Size = new System.Drawing.Size(890, 304);
			this.grbAmplificationSegment.Controls.Add(this.grdStep);
			this.grbAmplificationSegment.Controls.Add(this.panel3);
			this.grbAmplificationSegment.Controls.Add(this.panelCycle);
			this.grbAmplificationSegment.Dock = System.Windows.Forms.DockStyle.Fill;
			this.grbAmplificationSegment.Location = new System.Drawing.Point(0, 0);
			this.grbAmplificationSegment.Name = "grbAmplificationSegment";
			this.grbAmplificationSegment.Size = new System.Drawing.Size(890, 304);
			this.grbAmplificationSegment.TabIndex = 3;
			this.grbAmplificationSegment.TabStop = false;
			this.grbAmplificationSegment.Text = "Amplification Segement";
			appearance.BackColor = System.Drawing.SystemColors.Window;
			appearance.BorderColor = System.Drawing.SystemColors.InactiveCaption;
			this.grdStep.DisplayLayout.Appearance = appearance;
			this.grdStep.DisplayLayout.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			this.grdStep.DisplayLayout.CaptionVisible = Infragistics.Win.DefaultableBoolean.False;
			appearance2.BackColor = System.Drawing.SystemColors.ActiveBorder;
			appearance2.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance2.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical;
			appearance2.BorderColor = System.Drawing.SystemColors.Window;
			this.grdStep.DisplayLayout.GroupByBox.Appearance = appearance2;
			appearance3.ForeColor = System.Drawing.SystemColors.GrayText;
			this.grdStep.DisplayLayout.GroupByBox.BandLabelAppearance = appearance3;
			this.grdStep.DisplayLayout.GroupByBox.BorderStyle = Infragistics.Win.UIElementBorderStyle.Solid;
			appearance4.BackColor = System.Drawing.SystemColors.ControlLightLight;
			appearance4.BackColor2 = System.Drawing.SystemColors.Control;
			appearance4.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance4.ForeColor = System.Drawing.SystemColors.GrayText;
			this.grdStep.DisplayLayout.GroupByBox.PromptAppearance = appearance4;
			this.grdStep.DisplayLayout.MaxColScrollRegions = 1;
			this.grdStep.DisplayLayout.MaxRowScrollRegions = 1;
			appearance5.BackColor = System.Drawing.SystemColors.Window;
			appearance5.ForeColor = System.Drawing.SystemColors.ControlText;
			this.grdStep.DisplayLayout.Override.ActiveCellAppearance = appearance5;
			this.grdStep.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Dotted;
			this.grdStep.DisplayLayout.Override.BorderStyleRow = Infragistics.Win.UIElementBorderStyle.Dotted;
			appearance6.BackColor = System.Drawing.SystemColors.Window;
			this.grdStep.DisplayLayout.Override.CardAreaAppearance = appearance6;
			appearance7.BorderColor = System.Drawing.Color.Silver;
			appearance7.TextTrimming = Infragistics.Win.TextTrimming.EllipsisCharacter;
			this.grdStep.DisplayLayout.Override.CellAppearance = appearance7;
			this.grdStep.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.EditAndSelectText;
			this.grdStep.DisplayLayout.Override.CellPadding = 0;
			appearance8.BackColor = System.Drawing.SystemColors.Control;
			appearance8.BackColor2 = System.Drawing.SystemColors.ControlDark;
			appearance8.BackGradientAlignment = Infragistics.Win.GradientAlignment.Element;
			appearance8.BackGradientStyle = Infragistics.Win.GradientStyle.Horizontal;
			appearance8.BorderColor = System.Drawing.SystemColors.Window;
			this.grdStep.DisplayLayout.Override.GroupByRowAppearance = appearance8;
			appearance9.TextHAlignAsString = "Left";
			this.grdStep.DisplayLayout.Override.HeaderAppearance = appearance9;
			this.grdStep.DisplayLayout.Override.HeaderClickAction = Infragistics.Win.UltraWinGrid.HeaderClickAction.SortMulti;
			this.grdStep.DisplayLayout.Override.HeaderStyle = Infragistics.Win.HeaderStyle.WindowsXPCommand;
			appearance10.BackColor = System.Drawing.SystemColors.Window;
			appearance10.BorderColor = System.Drawing.Color.Silver;
			this.grdStep.DisplayLayout.Override.RowAppearance = appearance10;
			this.grdStep.DisplayLayout.Override.RowSelectors = Infragistics.Win.DefaultableBoolean.False;
			appearance11.BackColor = System.Drawing.SystemColors.ControlLight;
			this.grdStep.DisplayLayout.Override.TemplateAddRowAppearance = appearance11;
			this.grdStep.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill;
			this.grdStep.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate;
			this.grdStep.DisplayLayout.ViewStyleBand = Infragistics.Win.UltraWinGrid.ViewStyleBand.OutlookGroupBy;
			this.grdStep.Dock = System.Windows.Forms.DockStyle.Fill;
			this.grdStep.Location = new System.Drawing.Point(3, 48);
			this.grdStep.Name = "grdStep";
			this.grdStep.Size = new System.Drawing.Size(783, 253);
			this.grdStep.TabIndex = 1;
			this.grdStep.Text = "ultraGrid1";
			this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this.panel3.Controls.Add(this.btnMoveDown);
			this.panel3.Controls.Add(this.btnMoveUp);
			this.panel3.Controls.Add(this.btnDeleteStep);
			this.panel3.Controls.Add(this.btnAddStep);
			this.panel3.Dock = System.Windows.Forms.DockStyle.Right;
			this.panel3.Location = new System.Drawing.Point(786, 48);
			this.panel3.Name = "panel3";
			this.panel3.Size = new System.Drawing.Size(101, 253);
			this.panel3.TabIndex = 2;
			this.btnMoveDown.Location = new System.Drawing.Point(9, 194);
			this.btnMoveDown.Name = "btnMoveDown";
			this.btnMoveDown.Size = new System.Drawing.Size(82, 35);
			this.btnMoveDown.TabIndex = 9;
			this.btnMoveDown.Text = "Move Down";
			this.btnMoveDown.UseVisualStyleBackColor = true;
			this.btnMoveDown.Click += new System.EventHandler(btnMoveDown_Click);
			this.btnMoveUp.Location = new System.Drawing.Point(9, 136);
			this.btnMoveUp.Name = "btnMoveUp";
			this.btnMoveUp.Size = new System.Drawing.Size(82, 35);
			this.btnMoveUp.TabIndex = 8;
			this.btnMoveUp.Text = "Move Up";
			this.btnMoveUp.UseVisualStyleBackColor = true;
			this.btnMoveUp.Click += new System.EventHandler(btnMoveUp_Click);
			this.btnDeleteStep.Location = new System.Drawing.Point(9, 78);
			this.btnDeleteStep.Name = "btnDeleteStep";
			this.btnDeleteStep.Size = new System.Drawing.Size(82, 35);
			this.btnDeleteStep.TabIndex = 6;
			this.btnDeleteStep.Text = "Delete Step";
			this.btnDeleteStep.UseVisualStyleBackColor = true;
			this.btnDeleteStep.Click += new System.EventHandler(btnDeleteStep_Click);
			this.btnAddStep.Location = new System.Drawing.Point(9, 20);
			this.btnAddStep.Name = "btnAddStep";
			this.btnAddStep.Size = new System.Drawing.Size(82, 35);
			this.btnAddStep.TabIndex = 5;
			this.btnAddStep.Text = "Add Step";
			this.btnAddStep.UseVisualStyleBackColor = true;
			this.btnAddStep.Click += new System.EventHandler(btnAddStep_Click);
			this.panelCycle.Controls.Add(this.lblCycleCount);
			this.panelCycle.Controls.Add(this.numCycleCount);
			this.panelCycle.Dock = System.Windows.Forms.DockStyle.Top;
			this.panelCycle.Location = new System.Drawing.Point(3, 17);
			this.panelCycle.Name = "panel1";
			this.panelCycle.Size = new System.Drawing.Size(884, 31);
			this.panelCycle.TabIndex = 3;
			this.lblCycleCount.AutoSize = true;
			this.lblCycleCount.Location = new System.Drawing.Point(31, 7);
			this.lblCycleCount.Name = "lblCycleCount";
			this.lblCycleCount.Size = new System.Drawing.Size(41, 12);
			this.lblCycleCount.TabIndex = 1;
			this.lblCycleCount.Text = "label1";
			this.numCycleCount.Location = new System.Drawing.Point(124, 5);
			this.numCycleCount.Name = "numCycleCount";
			this.numCycleCount.Size = new System.Drawing.Size(88, 21);
			this.numCycleCount.TabIndex = 0;
			this.ultraTabPageControl2.Controls.Add(this.grbMeltingSegment);
			this.ultraTabPageControl2.Location = new System.Drawing.Point(-10000, -10000);
			this.ultraTabPageControl2.Name = "ultraTabPageControl2";
			this.ultraTabPageControl2.Size = new System.Drawing.Size(890, 304);
			this.grbMeltingSegment.Dock = System.Windows.Forms.DockStyle.Fill;
			this.grbMeltingSegment.Location = new System.Drawing.Point(0, 0);
			this.grbMeltingSegment.Name = "grbMeltingSegment";
			this.grbMeltingSegment.Size = new System.Drawing.Size(890, 304);
			this.grbMeltingSegment.TabIndex = 0;
			this.grbMeltingSegment.TabStop = false;
			this.grbMeltingSegment.Text = "Melting Segment";
			this.segmentBar.AcceptsFocus = Infragistics.Win.DefaultableBoolean.True;
			this.segmentBar.Dock = System.Windows.Forms.DockStyle.Left;
			ultraExplorerBarGroup.Expanded = false;
			ultraExplorerBarGroup.ItemSettings.AllowDragCopy = Infragistics.Win.UltraWinExplorerBar.ItemDragStyle.None;
			ultraExplorerBarGroup.ItemSettings.AllowDragMove = Infragistics.Win.UltraWinExplorerBar.ItemDragStyle.None;
			ultraExplorerBarGroup.ItemSettings.AllowEdit = Infragistics.Win.DefaultableBoolean.True;
			ultraExplorerBarGroup.Key = "Amplification";
			ultraExplorerBarGroup.Text = "Amplification";
			ultraExplorerBarGroup2.Key = "Melting";
			ultraExplorerBarGroup2.Text = "Melting";
			this.segmentBar.Groups.AddRange(new Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarGroup[2] { ultraExplorerBarGroup, ultraExplorerBarGroup2 });
			this.segmentBar.GroupSettings.AllowDrag = Infragistics.Win.DefaultableBoolean.False;
			this.segmentBar.GroupSettings.AllowEdit = Infragistics.Win.DefaultableBoolean.True;
			this.segmentBar.GroupSettings.AllowItemDrop = Infragistics.Win.DefaultableBoolean.True;
			this.segmentBar.GroupSettings.Style = Infragistics.Win.UltraWinExplorerBar.GroupStyle.SmallImagesWithText;
			this.segmentBar.ItemSettings.AllowDragCopy = Infragistics.Win.UltraWinExplorerBar.ItemDragStyle.None;
			this.segmentBar.ItemSettings.AllowDragMove = Infragistics.Win.UltraWinExplorerBar.ItemDragStyle.None;
			this.segmentBar.ItemSettings.AllowEdit = Infragistics.Win.DefaultableBoolean.True;
			this.segmentBar.Location = new System.Drawing.Point(0, 0);
			this.segmentBar.Name = "segmentBar";
			this.segmentBar.Size = new System.Drawing.Size(116, 304);
			this.segmentBar.Style = Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarStyle.VisualStudio2005Toolbox;
			this.segmentBar.TabIndex = 4;
			this.segmentBar.UseOsThemes = Infragistics.Win.DefaultableBoolean.True;
			this.segmentBar.ViewStyle = Infragistics.Win.UltraWinExplorerBar.UltraExplorerBarViewStyle.VisualStudio2005;
			this.segmentBar.ItemClick += new Infragistics.Win.UltraWinExplorerBar.ItemClickEventHandler(segmentBar_ItemClick);
			this.ultraTabControl.CloseButtonLocation = Infragistics.Win.UltraWinTabs.TabCloseButtonLocation.None;
			this.ultraTabControl.Controls.Add(this.ultraTabSharedControlsPage1);
			this.ultraTabControl.Controls.Add(this.ultraTabPageControl2);
			this.ultraTabControl.Controls.Add(this.ultraTabPageControl1);
			this.ultraTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
			this.ultraTabControl.Location = new System.Drawing.Point(116, 0);
			this.ultraTabControl.Name = "ultraTabControl";
			this.ultraTabControl.SharedControlsPage = this.ultraTabSharedControlsPage1;
			this.ultraTabControl.Size = new System.Drawing.Size(890, 304);
			this.ultraTabControl.Style = Infragistics.Win.UltraWinTabControl.UltraTabControlStyle.Wizard;
			this.ultraTabControl.TabIndex = 3;
			ultraTab.TabPage = this.ultraTabPageControl1;
			ultraTab.Text = "tab1";
			ultraTab2.TabPage = this.ultraTabPageControl2;
			ultraTab2.Text = "tab2";
			this.ultraTabControl.Tabs.AddRange(new Infragistics.Win.UltraWinTabControl.UltraTab[2] { ultraTab, ultraTab2 });
			this.ultraTabSharedControlsPage1.Location = new System.Drawing.Point(-10000, -10000);
			this.ultraTabSharedControlsPage1.Name = "ultraTabSharedControlsPage1";
			this.ultraTabSharedControlsPage1.Size = new System.Drawing.Size(890, 304);
			this.mnuPcrProgram.Location = new System.Drawing.Point(0, 0);
			this.mnuPcrProgram.Name = "mnuPcrProgram";
			this.mnuPcrProgram.Size = new System.Drawing.Size(1006, 24);
			this.mnuPcrProgram.TabIndex = 5;
			this.mnuPcrProgram.Text = "File";
			this.panel2.Controls.Add(this.ultraTabControl);
			this.panel2.Controls.Add(this.segmentBar);
			this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
			this.panel2.Location = new System.Drawing.Point(0, 24);
			this.panel2.Name = "panel2";
			this.panel2.Size = new System.Drawing.Size(1006, 304);
			this.panel2.TabIndex = 6;
			this.chartPcrProgram.ChartType = Infragistics.UltraChart.Shared.Styles.ChartType.StepLineChart;
			this.chartPcrProgram.Axis.BackColor = System.Drawing.Color.FromArgb(255, 248, 220);
			paintElement.ElementType = Infragistics.UltraChart.Shared.Styles.PaintElementType.None;
			paintElement.Fill = System.Drawing.Color.FromArgb(255, 248, 220);
			this.chartPcrProgram.Axis.PE = paintElement;
			this.chartPcrProgram.Axis.X.Extent = 10;
			this.chartPcrProgram.Axis.X.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.X.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.X.Labels.ItemFormatString = "<ITEM_LABEL:MM-dd-yy>";
			this.chartPcrProgram.Axis.X.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.X.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing;
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.FormatString = "";
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing;
			this.chartPcrProgram.Axis.X.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.X.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.X.LineThickness = 1;
			this.chartPcrProgram.Axis.X.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.X.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.X.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.X.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.X.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.X.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.X.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.X.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.X.TickmarkInterval = 50.0;
			this.chartPcrProgram.Axis.X.TickmarkIntervalType = Infragistics.UltraChart.Shared.Styles.AxisIntervalType.Hours;
			this.chartPcrProgram.Axis.X.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.X.Visible = true;
			this.chartPcrProgram.Axis.X2.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.X2.Labels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.X2.Labels.HorizontalAlign = System.Drawing.StringAlignment.Far;
			this.chartPcrProgram.Axis.X2.Labels.ItemFormatString = "<ITEM_LABEL:MM-dd-yy>";
			this.chartPcrProgram.Axis.X2.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.X2.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.FormatString = "";
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Far;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.VerticalLeftFacing;
			this.chartPcrProgram.Axis.X2.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.X2.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.X2.LineThickness = 1;
			this.chartPcrProgram.Axis.X2.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.X2.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.X2.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.X2.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.X2.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.X2.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.X2.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.X2.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.X2.TickmarkInterval = 50.0;
			this.chartPcrProgram.Axis.X2.TickmarkIntervalType = Infragistics.UltraChart.Shared.Styles.AxisIntervalType.Hours;
			this.chartPcrProgram.Axis.X2.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.X2.Visible = false;
			this.chartPcrProgram.Axis.Y.Extent = 10;
			this.chartPcrProgram.Axis.Y.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Y.Labels.HorizontalAlign = System.Drawing.StringAlignment.Far;
			this.chartPcrProgram.Axis.Y.Labels.ItemFormatString = "<DATA_VALUE:00.##>";
			this.chartPcrProgram.Axis.Y.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Y.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.FormatString = "";
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Far;
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Y.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Y.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Y.LineThickness = 1;
			this.chartPcrProgram.Axis.Y.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Y.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.Y.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Y.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.Y.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Y.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.Y.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Y.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.Y.TickmarkInterval = 1.0;
			this.chartPcrProgram.Axis.Y.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.Y.Visible = true;
			this.chartPcrProgram.Axis.Y2.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Y2.Labels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.Y2.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Y2.Labels.ItemFormatString = "<DATA_VALUE:00.##>";
			this.chartPcrProgram.Axis.Y2.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Y2.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.FormatString = "";
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Y2.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Y2.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Y2.LineThickness = 1;
			this.chartPcrProgram.Axis.Y2.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Y2.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.Y2.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Y2.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.Y2.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Y2.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.Y2.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Y2.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.Y2.TickmarkInterval = 40000.0;
			this.chartPcrProgram.Axis.Y2.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.Y2.Visible = false;
			this.chartPcrProgram.Axis.Z.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Z.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Z.Labels.ItemFormatString = "";
			this.chartPcrProgram.Axis.Z.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Z.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Z.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Z.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Z.LineThickness = 1;
			this.chartPcrProgram.Axis.Z.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Z.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.Z.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Z.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.Z.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Z.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.Z.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Z.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.Z.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.Z.Visible = false;
			this.chartPcrProgram.Axis.Z2.Labels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Z2.Labels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.Z2.Labels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Z2.Labels.ItemFormatString = "";
			this.chartPcrProgram.Axis.Z2.Labels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Z2.Labels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.Font = new System.Drawing.Font("Verdana", 7f);
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.FontColor = System.Drawing.Color.Gray;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.HorizontalAlign = System.Drawing.StringAlignment.Near;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.Layout.Behavior = Infragistics.UltraChart.Shared.Styles.AxisLabelLayoutBehaviors.Auto;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.Orientation = Infragistics.UltraChart.Shared.Styles.TextOrientation.Horizontal;
			this.chartPcrProgram.Axis.Z2.Labels.SeriesLabels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Z2.Labels.VerticalAlign = System.Drawing.StringAlignment.Center;
			this.chartPcrProgram.Axis.Z2.LineThickness = 1;
			this.chartPcrProgram.Axis.Z2.MajorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Z2.MajorGridLines.Color = System.Drawing.Color.Gainsboro;
			this.chartPcrProgram.Axis.Z2.MajorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Z2.MajorGridLines.Visible = true;
			this.chartPcrProgram.Axis.Z2.MinorGridLines.AlphaLevel = byte.MaxValue;
			this.chartPcrProgram.Axis.Z2.MinorGridLines.Color = System.Drawing.Color.LightGray;
			this.chartPcrProgram.Axis.Z2.MinorGridLines.DrawStyle = Infragistics.UltraChart.Shared.Styles.LineDrawStyle.Dot;
			this.chartPcrProgram.Axis.Z2.MinorGridLines.Visible = false;
			this.chartPcrProgram.Axis.Z2.TickmarkStyle = Infragistics.UltraChart.Shared.Styles.AxisTickStyle.Smart;
			this.chartPcrProgram.Axis.Z2.Visible = false;
			this.chartPcrProgram.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
			this.chartPcrProgram.ColorModel.AlphaLevel = 150;
			this.chartPcrProgram.ColorModel.ColorBegin = System.Drawing.Color.Pink;
			this.chartPcrProgram.ColorModel.ColorEnd = System.Drawing.Color.DarkRed;
			this.chartPcrProgram.ColorModel.ModelStyle = Infragistics.UltraChart.Shared.Styles.ColorModels.CustomLinear;
			this.chartPcrProgram.Dock = System.Windows.Forms.DockStyle.Fill;
			this.chartPcrProgram.Effects.Effects.Add(effect);
			this.chartPcrProgram.Location = new System.Drawing.Point(3, 17);
			this.chartPcrProgram.Name = "chartPcrProgram";
			this.chartPcrProgram.Size = new System.Drawing.Size(1000, 325);
			this.chartPcrProgram.TabIndex = 7;
			this.chartPcrProgram.Tooltips.HighlightFillColor = System.Drawing.Color.Black;
			this.chartPcrProgram.Tooltips.HighlightOutlineColor = System.Drawing.Color.DarkGray;
			this.scrollBar.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.scrollBar.Location = new System.Drawing.Point(3, 342);
			this.scrollBar.Name = "scrollBar";
			this.scrollBar.NonAutoSize = new System.Drawing.Size(80, 17);
			this.scrollBar.ShowMinMaxButtons = Infragistics.Win.DefaultableBoolean.True;
			this.scrollBar.Size = new System.Drawing.Size(1000, 19);
			this.scrollBar.TabIndex = 9;
			this.scrollBar.Visible = false;
			this.scrollBar.ValueChanged += new System.EventHandler(scrollBar_ValueChanged);
			this.grbPreview.Controls.Add(this.chartPcrProgram);
			this.grbPreview.Controls.Add(this.scrollBar);
			this.grbPreview.Dock = System.Windows.Forms.DockStyle.Fill;
			this.grbPreview.Location = new System.Drawing.Point(0, 328);
			this.grbPreview.Name = "grbPreview";
			this.grbPreview.Size = new System.Drawing.Size(1006, 364);
			this.grbPreview.TabIndex = 10;
			this.grbPreview.TabStop = false;
			this.grbPreview.Text = "groupBox1";
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(1006, 692);
			base.Controls.Add(this.grbPreview);
			base.Controls.Add(this.panel2);
			base.Controls.Add(this.mnuPcrProgram);
			base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			base.MainMenuStrip = this.mnuPcrProgram;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "FormProgramEditor";
			base.ShowInTaskbar = false;
			base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Pcr Program Editor";
			base.Load += new System.EventHandler(FormProgramEditor_Load);
			base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormProgramEditor_FormClosing);
			this.ultraTabPageControl1.ResumeLayout(false);
			this.grbAmplificationSegment.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.grdStep).EndInit();
			this.panel3.ResumeLayout(false);
			this.panelCycle.ResumeLayout(false);
			this.panelCycle.PerformLayout();
			((System.ComponentModel.ISupportInitialize)this.numCycleCount).EndInit();
			this.ultraTabPageControl2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.segmentBar).EndInit();
			((System.ComponentModel.ISupportInitialize)this.ultraTabControl).EndInit();
			this.ultraTabControl.ResumeLayout(false);
			this.panel2.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.chartPcrProgram).EndInit();
			this.grbPreview.ResumeLayout(false);
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
